package com.springboot.dto;

/**
 * 预约视图的列表，显示每次预约的医生信息和病情简述
 */
public class AssistantSeeDoctorsView {
    private String DoctorName;
    private String DoctorTel;
    private String DoctorRank;//职位
    private String DoctorField;//科室
    private String DoctorLogoLink;


    public AssistantSeeDoctorsView() {}



    public String getDoctorName() {
        return DoctorName;
    }

    public void setDoctorName(String doctorName) {
        DoctorName = doctorName;
    }

    public String getDoctorTel() {
        return DoctorTel;
    }

    public void setDoctorTel(String doctorTel) { DoctorTel = doctorTel; }

    public String getDoctorRank() {
        return DoctorRank;
    }

    public void setDoctorRank(String doctorRank) {
        DoctorRank = doctorRank;
    }

    public String getDoctorField() {
        return DoctorField;
    }

    public void setDoctorField(String doctorField) {
        DoctorField = doctorField;
    }

    public String getDoctorLogoLink() {
        return DoctorLogoLink;
    }

    public void setDoctorLogoLink(String doctorLogoLink) {
        DoctorLogoLink = doctorLogoLink;
    }


    @Override
    public String toString() {
        if(DoctorLogoLink!=null)
        {
            DoctorLogoLink=DoctorLogoLink.replaceAll("","");
        }
        return "{" +
                "\"doctorName\":\"" + DoctorName + '\"' +
                ",\"position\":\"" + DoctorRank + '\"' +
                ",\"department\":\"" + DoctorField + '\"' +
                ",\"tel\":\"" + DoctorTel + '\"' +
                ",\"logoLink\":\"" + DoctorLogoLink + '\"' +
                '}';
    }
}
